using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace netcoreTextMvc.Models
{
    public class ShowValue
    {
        public string id { get; set; }
        public string chartType { get; set; }
        public double outValue { get; set; }
        public double addValue { get; set; }
        public double nowValue { get; set; }
        public List<string> date { get; set; }
        public List<double> value { get; set; }
       
        public string strdata { get; set; }
        public ShowValue()
        {
            date = new List<string>();
            value = new List<double>();
            outValue = 0;
            addValue = 0;
            nowValue = 0;
            id = "";
            strdata = "";
            chartType = "";
        }

        public void ToStr()
        {
            strdata= JsonConvert.SerializeObject(this);
        }
    }
}
